package com.waverider.promotion.model;

public class OrderQueryModel extends BaseQueryModel
{
	private Long 	shopId;
	private String	buyerNick;
	private Integer status;
	
	public Long getShopId()
	{
		return shopId;
	}
	public String getBuyerNick()
	{
		return buyerNick;
	}
	public Integer getStatus()
	{
		return status;
	}
	public void setShopId(Long shopId)
	{
		this.shopId = shopId;
	}
	public void setBuyerNick(String buyerNick)
	{
		this.buyerNick = buyerNick;
	}
	public void setStatus(Integer status)
	{
		this.status = status;
	}
	
	
	public static OrderQueryModel buildQueryModel(Long shopId, String buyerNick, Integer status, Long currentPage, Long pageSize) 
	{
		OrderQueryModel queryModel = new OrderQueryModel();
		queryModel.shopId = shopId;
		queryModel.buyerNick = buyerNick;
		queryModel.status = status;
		queryModel.setCurrentPage(currentPage);
		queryModel.setPageSize(pageSize);
		
		return queryModel;
	}
}
